package com.erp.stock.dao;

import com.erp.stock.entity.FinishedGoodsInventory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FinishedGoodsInventoryDao extends JpaRepository<FinishedGoodsInventory,Long> {
    FinishedGoodsInventory findFirstByGoodsIdAndOrderId(Long goodsId,Long orderId);

    List<FinishedGoodsInventory> findAllByOrderId(Long orderId);
}
